//
//  IOSDevice.cpp
//  unigame
//
//  Created by Lee on 13-3-16.
//  Copyright (c) 2013年 Lee. All rights reserved.
//

#include "stdafx.h"
#include "IOSDevice.h"
#include "../Device.h"
#include "DeviceInfo.h"

unigame::IOSDevice::IOSDevice():
Device()
{
    m_info = uni_new DeviceInfo();
    char path[200];
    memset(path, 0, 200);
    m_info->getResourceDir(path);
    m_resourcePathLength = strlen(path) + 1;
    m_resourcePath = uni_new char[m_resourcePathLength];
    memcpy(m_resourcePath, path, m_resourcePathLength);
}

unigame::IOSDevice::~IOSDevice()
{
    delete m_info;
}